package cn.jk.config;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.ScopeMetadata;
import org.springframework.context.annotation.ScopeMetadataResolver;

public class MyScopeMetaDataResolver implements ScopeMetadataResolver {
	@Override
	public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) {
		ScopeMetadata scopeMetadata = new ScopeMetadata();
		scopeMetadata.setScopeName("singleton");
		return scopeMetadata;
	}
}
